<?php

namespace app\traits;


trait EnvTrait
{

    protected static function env()
    {
        return env('APP_ENV', '');
    }

    protected static function inEnvLocal()
    {
        return self::env() == 'local';
    }

    protected static function inEnvProd()
    {
        return self::env() == 'prod';
    }

    protected static function inEnvPrev()
    {
        return self::env() == 'prev';
    }

    protected static function inEnvDev()
    {
        return self::env() == 'dev';
    }

    protected static function inEnvTesting()
    {
        return self::env() == 'test';
    }
}